package com.example.wtt.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Dynamic {
    @Alias("dynamicID")
    @TableId(value = "dynamic_id", type = IdType.AUTO)
    private Integer id;
    @Alias("userId")
    @TableField("user_id")
    private Integer userId;
    @Alias("dynamicUrl")
    @TableField("dynamic_url")
    private String dynamicUrl;
    @Alias("dynamicText")
    @TableField("dynamic_text")
    private String dynamicText;
    @Alias("dynamicCreateTime")
    @TableField("create_time")
    private Date createTime;
    @Alias("upvote")
    private Integer upvote;
    @Alias("collect")
    private Integer collect;
    @Alias("downvote")
    private Integer downvote;
    @Alias("title")
    private String title;
}
